//
//  HYFaceToFaceCell.m
//  XPlayer
//
//  Created by 张水 on 2023/10/25.
//

#import "HYFaceToFaceCell.h"

@interface HYFaceToFaceCell()

@property (nonatomic, strong) UILabel *titleLabel;

@property (nonatomic, strong) UILabel *tipsLabel;

@property (nonatomic, strong) UIImageView *arrowImageView;

@end

@implementation HYFaceToFaceCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.contentView.backgroundColor = AppContentBgThemeColor;
        [self configUI];
    }
    return self;
}
- (void)configUI
{
    [self.contentView addSubview:self.titleLabel];
    [self.contentView addSubview:self.tipsLabel];
    [self.contentView addSubview:self.arrowImageView];
    
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(15);
        make.top.equalTo(self.contentView).offset(10);
    }];
    
    [self.tipsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.titleLabel.mas_left);
        make.top.equalTo(self.titleLabel.mas_bottom).offset(10);
    }];
    
    [self.arrowImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.right.equalTo(self.contentView).offset(-15);
    }];
}
#pragma mark  - loadLazy

- (UIImageView *)arrowImageView
{
    if (_arrowImageView == nil) {
        _arrowImageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"icon_arrow"]];
        _arrowImageView.contentMode = UIViewContentModeScaleAspectFit;
    }
    return _arrowImageView;
}

- (UILabel *)titleLabel
{
    if(_titleLabel == nil){
        _titleLabel = [[UILabel alloc]init];
        _titleLabel.font = FONT_SIZE(14);
        _titleLabel.textColor = APPTextThemeColor;
        _titleLabel.text = NSLocalizedString(@"搜索周边用户", nil);
    }
    return _titleLabel;
}

- (UILabel *)tipsLabel
{
    if(_tipsLabel == nil){
        _tipsLabel = [[UILabel alloc]init];
        _tipsLabel.font = FONT_SIZE(12);
        _tipsLabel.textColor = [UIColor grayColor];
        _tipsLabel.text = NSLocalizedString(@"连接成功后传送文件", nil);
    }
    return _tipsLabel;
}
- (void)bindViewModel:(id)vm
{
    
}
@end
